package com.meiyou.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ChongzhiExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ChongzhiExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCCzodeIsNull() {
            addCriterion("c_czode is null");
            return (Criteria) this;
        }

        public Criteria andCCzodeIsNotNull() {
            addCriterion("c_czode is not null");
            return (Criteria) this;
        }

        public Criteria andCCzodeEqualTo(String value) {
            addCriterion("c_czode =", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeNotEqualTo(String value) {
            addCriterion("c_czode <>", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeGreaterThan(String value) {
            addCriterion("c_czode >", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeGreaterThanOrEqualTo(String value) {
            addCriterion("c_czode >=", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeLessThan(String value) {
            addCriterion("c_czode <", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeLessThanOrEqualTo(String value) {
            addCriterion("c_czode <=", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeLike(String value) {
            addCriterion("c_czode like", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeNotLike(String value) {
            addCriterion("c_czode not like", value, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeIn(List<String> values) {
            addCriterion("c_czode in", values, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeNotIn(List<String> values) {
            addCriterion("c_czode not in", values, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeBetween(String value1, String value2) {
            addCriterion("c_czode between", value1, value2, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCCzodeNotBetween(String value1, String value2) {
            addCriterion("c_czode not between", value1, value2, "cCzode");
            return (Criteria) this;
        }

        public Criteria andCUCountIsNull() {
            addCriterion("c_u_count is null");
            return (Criteria) this;
        }

        public Criteria andCUCountIsNotNull() {
            addCriterion("c_u_count is not null");
            return (Criteria) this;
        }

        public Criteria andCUCountEqualTo(String value) {
            addCriterion("c_u_count =", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountNotEqualTo(String value) {
            addCriterion("c_u_count <>", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountGreaterThan(String value) {
            addCriterion("c_u_count >", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountGreaterThanOrEqualTo(String value) {
            addCriterion("c_u_count >=", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountLessThan(String value) {
            addCriterion("c_u_count <", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountLessThanOrEqualTo(String value) {
            addCriterion("c_u_count <=", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountLike(String value) {
            addCriterion("c_u_count like", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountNotLike(String value) {
            addCriterion("c_u_count not like", value, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountIn(List<String> values) {
            addCriterion("c_u_count in", values, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountNotIn(List<String> values) {
            addCriterion("c_u_count not in", values, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountBetween(String value1, String value2) {
            addCriterion("c_u_count between", value1, value2, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCUCountNotBetween(String value1, String value2) {
            addCriterion("c_u_count not between", value1, value2, "cUCount");
            return (Criteria) this;
        }

        public Criteria andCMeijinIsNull() {
            addCriterion("c_meijin is null");
            return (Criteria) this;
        }

        public Criteria andCMeijinIsNotNull() {
            addCriterion("c_meijin is not null");
            return (Criteria) this;
        }

        public Criteria andCMeijinEqualTo(Double value) {
            addCriterion("c_meijin =", value, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinNotEqualTo(Double value) {
            addCriterion("c_meijin <>", value, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinGreaterThan(Double value) {
            addCriterion("c_meijin >", value, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinGreaterThanOrEqualTo(Double value) {
            addCriterion("c_meijin >=", value, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinLessThan(Double value) {
            addCriterion("c_meijin <", value, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinLessThanOrEqualTo(Double value) {
            addCriterion("c_meijin <=", value, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinIn(List<Double> values) {
            addCriterion("c_meijin in", values, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinNotIn(List<Double> values) {
            addCriterion("c_meijin not in", values, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinBetween(Double value1, Double value2) {
            addCriterion("c_meijin between", value1, value2, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCMeijinNotBetween(Double value1, Double value2) {
            addCriterion("c_meijin not between", value1, value2, "cMeijin");
            return (Criteria) this;
        }

        public Criteria andCUMeijingIsNull() {
            addCriterion("c_u_meijing is null");
            return (Criteria) this;
        }

        public Criteria andCUMeijingIsNotNull() {
            addCriterion("c_u_meijing is not null");
            return (Criteria) this;
        }

        public Criteria andCUMeijingEqualTo(Double value) {
            addCriterion("c_u_meijing =", value, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingNotEqualTo(Double value) {
            addCriterion("c_u_meijing <>", value, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingGreaterThan(Double value) {
            addCriterion("c_u_meijing >", value, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingGreaterThanOrEqualTo(Double value) {
            addCriterion("c_u_meijing >=", value, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingLessThan(Double value) {
            addCriterion("c_u_meijing <", value, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingLessThanOrEqualTo(Double value) {
            addCriterion("c_u_meijing <=", value, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingIn(List<Double> values) {
            addCriterion("c_u_meijing in", values, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingNotIn(List<Double> values) {
            addCriterion("c_u_meijing not in", values, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingBetween(Double value1, Double value2) {
            addCriterion("c_u_meijing between", value1, value2, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCUMeijingNotBetween(Double value1, Double value2) {
            addCriterion("c_u_meijing not between", value1, value2, "cUMeijing");
            return (Criteria) this;
        }

        public Criteria andCPaytypeIsNull() {
            addCriterion("c_paytype is null");
            return (Criteria) this;
        }

        public Criteria andCPaytypeIsNotNull() {
            addCriterion("c_paytype is not null");
            return (Criteria) this;
        }

        public Criteria andCPaytypeEqualTo(String value) {
            addCriterion("c_paytype =", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeNotEqualTo(String value) {
            addCriterion("c_paytype <>", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeGreaterThan(String value) {
            addCriterion("c_paytype >", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeGreaterThanOrEqualTo(String value) {
            addCriterion("c_paytype >=", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeLessThan(String value) {
            addCriterion("c_paytype <", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeLessThanOrEqualTo(String value) {
            addCriterion("c_paytype <=", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeLike(String value) {
            addCriterion("c_paytype like", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeNotLike(String value) {
            addCriterion("c_paytype not like", value, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeIn(List<String> values) {
            addCriterion("c_paytype in", values, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeNotIn(List<String> values) {
            addCriterion("c_paytype not in", values, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeBetween(String value1, String value2) {
            addCriterion("c_paytype between", value1, value2, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCPaytypeNotBetween(String value1, String value2) {
            addCriterion("c_paytype not between", value1, value2, "cPaytype");
            return (Criteria) this;
        }

        public Criteria andCTimeIsNull() {
            addCriterion("c_time is null");
            return (Criteria) this;
        }

        public Criteria andCTimeIsNotNull() {
            addCriterion("c_time is not null");
            return (Criteria) this;
        }

        public Criteria andCTimeEqualTo(Date value) {
            addCriterion("c_time =", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeNotEqualTo(Date value) {
            addCriterion("c_time <>", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeGreaterThan(Date value) {
            addCriterion("c_time >", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("c_time >=", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeLessThan(Date value) {
            addCriterion("c_time <", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeLessThanOrEqualTo(Date value) {
            addCriterion("c_time <=", value, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeIn(List<Date> values) {
            addCriterion("c_time in", values, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeNotIn(List<Date> values) {
            addCriterion("c_time not in", values, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeBetween(Date value1, Date value2) {
            addCriterion("c_time between", value1, value2, "cTime");
            return (Criteria) this;
        }

        public Criteria andCTimeNotBetween(Date value1, Date value2) {
            addCriterion("c_time not between", value1, value2, "cTime");
            return (Criteria) this;
        }

        public Criteria andCStateIsNull() {
            addCriterion("c_state is null");
            return (Criteria) this;
        }

        public Criteria andCStateIsNotNull() {
            addCriterion("c_state is not null");
            return (Criteria) this;
        }

        public Criteria andCStateEqualTo(String value) {
            addCriterion("c_state =", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateNotEqualTo(String value) {
            addCriterion("c_state <>", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateGreaterThan(String value) {
            addCriterion("c_state >", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateGreaterThanOrEqualTo(String value) {
            addCriterion("c_state >=", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateLessThan(String value) {
            addCriterion("c_state <", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateLessThanOrEqualTo(String value) {
            addCriterion("c_state <=", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateLike(String value) {
            addCriterion("c_state like", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateNotLike(String value) {
            addCriterion("c_state not like", value, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateIn(List<String> values) {
            addCriterion("c_state in", values, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateNotIn(List<String> values) {
            addCriterion("c_state not in", values, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateBetween(String value1, String value2) {
            addCriterion("c_state between", value1, value2, "cState");
            return (Criteria) this;
        }

        public Criteria andCStateNotBetween(String value1, String value2) {
            addCriterion("c_state not between", value1, value2, "cState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}